/*
 * Unit Test for frontier 
 */

#include "spindle.h"
#include <stdio.h>

int
test_spindle()
{
  spindle_t spdl;
  spdl = spindle_new();

  int pos1, pos2;
  int pp[10];
  pp[0] = 0;
  pos1 = spindle_occur(spdl, pp, 1);
  printf("new position-1: %d\n", pos1);
  spindle_print(spdl);

  pos2 = spindle_occur(spdl, pp, 1);
  printf("new position-2: %d\n", pos2);

  spindle_print(spdl);

  pp[0] = pos1;
  pp[1] = pos2;
  pos1 = spindle_occur(spdl, pp, 2);
  printf("new position-3: %d\n", pos1);
  spindle_print(spdl);

  return (0);
}